package com.front.managementfront.dictionary.vo;

import com.front.managementfront.dictionary.entity.HktsDictionaryList;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang.StringUtils;

/**
 * @ClassNameDictionaryParamterVo
 * @Description
 * @Author yck
 * @Date2021-05-13 17:41
 * @Version V1.0
 **/
@Data
@ApiModel(description = "用于封装修改字典状态")
public class DictionaryParamterVo {
    @ApiModelProperty(value = "主键",required = true)
    private String id;
    @ApiModelProperty(value = "删除标识")
    private Integer delFlag;
    @ApiModelProperty(value = "是否禁用")
    private String isDisable;
    @ApiModelProperty(value = "是否多选")
    private String isMultiple;
   public HktsDictionaryList getHktsDictionaryList(DictionaryParamterVo vo,HktsDictionaryList list){
       if(StringUtils.isNotBlank(vo.getIsMultiple())){
           list.setIsMultiple(vo.getIsMultiple());
       }
       if(StringUtils.isNotBlank(vo.isDisable)){
           list.setIsDisable(vo.getIsDisable());
       }
       if(vo.getDelFlag()!=null){
           list.setDelFlag(vo.getDelFlag());
       }
       return list;
   }

}
